<html>
<head>
	<title>节假日配置</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/gridList.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/gridList.js"></script>
	
<script type="text/javascript">
 function init(){
	var year = $("#year").val();
	if(!year){
		$.topCall.error("数字年份不能为空");
		return ;
	}
	
	$.post(__ctx+"/calendar/holidayConf/initWorkCalenDar?year="+year, function(data){
		var result = JSON.parse(data);
		if(result.isOk){
		    $.Dialog.error(result.msg+result.cause);
		} else {
			$.Dialog.success(result.message);
		}
        });
 }
 
//打开任务链接
 function openCamera() {
 	//debugger
 	$.openFullWindow(__ctx+"/componets/equipment/camera?id=1&type=jyb&num=1");
 }

</script>
</head>
<body>
	<div class="panel-body">
		<div class="panel panel-default search-panel">
			<div class="panel-heading">
				查询条件
				<a href="javascript:void(0)" class="pull-right">
					<i class="fa  fa-angle-double-up" toggle-collapse="#formSearch"></i>
				</a>
			</div>
			<div class="panel-body">
				<form id="searchForm" class="form-horizontal">
					<div class="form-group">
						<!-- <label class="control-label col-sm-1" for="name_^VLK">名称</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" id="name_^VLK">
						</div> -->
						<label class="control-label col-sm-1" for="system^VLK">系统</label>
						<div class="col-sm-3">
							<select class="form-control" type="text" id="system^VLK">
						        <option value="">请选择</option>
						        <option value="public">共有</option>
							    <option value="agilebpm">AgileBPM</option>
						     </select>
						</div>
						<label class="control-label col-sm-1" for="year^VLK">年份</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" id="year^VLK">
						</div>
						<!-- 
						<label class="control-label col-sm-1" for="type^VLK">分类</label>
						<div class="col-sm-3">
							 <select class="form-control" type="text" id="type^VLK">
						        <option value="">请选择</option>
						        <option value="LR">法定节假日</option>
							    <option value="LW">法定工作日</option>
							    <option value="CR">公司节假日</option>
							    <option value="CW">公司工作日</option>
						     </select>
						</div> -->
						
						<div class="col-sm-4" style="text-align: left;">
							<button type="button"   class="btn btn-primary fa-search">查询</button>
							<button type="button" class="btn btn-primary fa-rotate-left">重置</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		
		<div class="btn-group toolbar">
		  <button class="btn btn-outline btn-primary fa-plus" openDialog="新增" url="holidayConfEdit.html">新增 </button>
      	</div>
      	<table ab-grid data-id-field="id" data-url="/calendar/holidayConf/listJson">
	          <thead>
	          <tr>
	              <th data-checkbox="true">ID</th>
	              <th data-field="name">名称</th>
	              <th data-field="system" data-formatter="labelFormatter" data-value-style="public-共有-primary,agilebpm-AgileBPM-success,">系统</th>
	              <th data-field="year" >年份</th>
	              <th data-field="startDay"  data-formatter=dateTimeFormatter >开始日期</th>
	              <th data-field="endDay" data-formatter=dateTimeFormatter >结束日期</th>
	              <th data-field="type" data-formatter="labelFormatter" data-value-style="LR-法定节假日-primary,LW-法定工作日-success,CR-公司节假日-primary,CW-公司工作日-success," >分类</th>
	              <th data-field="remark" >描述</th>
	              <th data-field="id" data-formatter="innerHtmlFormatter" data-title="管理">
	             	<a class="fa-edit btn btn-outline btn-primary btn-sm" openDialog="编辑" qtip="编辑" url="holidayConfEdit.html?id={id}"></a>
					<a class="fa-trash btn btn-outline btn-primary btn-sm" sendAction="删除" qtip="删除" url="/calendar/holidayConf/remove?id={id}"></a>
	             </th>
	          </tr>
	          </thead>
      	</table>
	</div>
</body>
</html>